HAL PLAY migration: list of applicable concepts ¶
This section provides information about the applicable HAL PLAY architecture concepts.
Concepts for PLAY ¶
|
Concept |
Description |
|---|---|
|
The HAL1 PLAY driver is already split into initialization and configuration functions according to the following:
The HAL2 continues splitting according to this and additionally allows providing the instance within the
|
|
|
The handle structure has been renamed to
|
|
|
|
|
|
Two functions to set/get user data are available:
|
|
|
Individual callback registration APIs replace global register and unregister functions |
The registration of callbacks for PLAY events is managed by dedicated functions. Each function is responsible for registering callback functions for specific PLAY events. |
|
HAL PLAY APIs now rely on LL APIs rather than performing direct register access. |
|
|
Define statements and enumerations redirected to LL equivalents |
HAL PLAY define statements and enumerations are based on LL define statements. |
|
All hardware macros have been removed from the HAL PLAY driver, and equivalent services are ensured through the LL APIs. |
|
|
The PLAY is now managed by a global state machine. |
|
|
The HAL PLAY functions were updated to return:
|
|
|
The error handling mechanisms within the HAL have been redesigned to enhance the detection, reporting, and management of errors. |
|
|
All TypeDef parts in PLAY have been removed and replaced by
|
|
|
The
|
|
|
The source file
|
|
|
Add HAL PPP Services for Drivers with Handle to Retrieve Corresponding Peripheral Clock Frequency. |
The HAL PLAY driver provides a new function to retrieve the clock frequency:
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Finite parameters (including PLAY instances) have been converted into enumerated types (enums) at the HAL level. This improves code readability, maintainability, and type safety. |
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL PLAY functions start with
|